$(function () {
    $('#getHot_btn').on('click', function () {
        gethot_onc();
    })
    $('#setEm_btn').on('click', function () {
        console.log("ex")
        //这里可以传入
        emailTos("1355191088@qq.com", "你猜", "你猜啊啊啊啊", "啊大苏打", function (a) {
            console.log(a)
        });
    })
})

/*获取文章函数*/
function gethot_onc() {
    future.ajax({
        url: '/getHot',
        type: 'get',
        success: function (result) {
            /*alert(result)*/
            console.log("热门文章")
            console.log(result)
        }
    })
}

function emailTos(emil, title, content, call) {
    future.ajax({
        url: '/setEM',
        type: 'GET',
        data: {
            emil,
            title,
            content,
            call
        },
        success: function (result) {
            console.log("发邮件")
            console.log(result)
        }
    })

}
